FROM nginx:alpine

# 设置工作目录
WORKDIR /usr/share/nginx/html

# 复制前端构建文件
COPY ./frontend/dist/ .

# 复制Nginx配置
COPY ./nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf

# 创建日志目录
RUN mkdir -p /var/log/nginx

# 暴露端口
EXPOSE 80

# 启动Nginx
CMD ["nginx", "-g", "daemon off;"] 